package tech.wetech.admin.model.system;


import javax.servlet.http.HttpServletRequest;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.sql.Time;
import java.sql.Timestamp;

public class Photo implements Serializable {
    private Long id;
    @NotNull(message = "文件名不能为空")
    private String originalName;
    @NotNull(message = "存储路径不能为空")
    private String storagePath;
    @NotNull(message = "缩略图路径不能为空")
    private String thumbnailPath;

    @NotNull(message = "上传时间不能为空")
    private Timestamp uploadTime;

    public Photo() {

    }

    public Photo(String originalName, String storagePath,String thumbnailPath,Timestamp uploadTime) {
        this.originalName = originalName;
        this.storagePath = storagePath;
        this.uploadTime = uploadTime;
        this.thumbnailPath = thumbnailPath;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOriginalName() {
        return originalName;
    }

    public void setOriginalName(String originalName) {
        this.originalName = originalName;
    }

    public String getStoragePath() {
        return storagePath;
    }

    public void setStoragePath(String storagePath) {
        this.storagePath = storagePath;
    }

    public String getThumbnailPath() {
        return thumbnailPath;
    }

    public void setThumbnailPath(String thumbnailPath) {
        this.thumbnailPath = thumbnailPath;
    }

    public Timestamp getUploadTime() {
        return uploadTime;
    }

    public void setUploadTime(Timestamp uploadTime) {
        this.uploadTime = uploadTime;
    }
}
